<template>
    <div class="header">
        <div class="header-left">
            <div class="iconfont">&#xe600;</div>
        </div>
        <div class="header-input">
            <span class="iconfont">&#xe610;</span>
            输入热门旅游景点
        </div>
        <router-link to="/city">
            <div class="header-right">
                {{this.$store.state.city}}
                <span class="iconfont">&#xe6aa;</span>
            </div>
      </router-link>
    </div>
</template>

<script>
export default{
  name: 'HomHeader'

}
</script>
<style lang="stylus" scoped>
    //styles 在build文件夹中的 webpack.base.conf.js 中的resolve里定义的 路径
    @import "~styles/varibles.styl"
    .header
        display flex
        line-height:$headerHeight
        background:$bgColor
        color:#fff
        height :.88rem
        .header-left
            width .64rem
            float left
            text-align center
            font-size .4rem
            margin-top:.25rem
        .header-input
            flex:1
            height: .62rem
            line-height: .62rem
            margin-top: .12rem
            margin-left: .2rem
            background: #fff
            border-radius:.1rem
            color:#ccc
            padding-left:.2rem
        .header-right
            min-width: 1.04rem
            padding:0 .1rem
            float: right
            text-align center
            color: #fff
            margin-top:.25rem
</style>
